package com.xsd.responsibilitychain;

/**
 * @Description:
 * @Author: zhoufuzong
 * @Created: 2021-03-07 21:57:57
 * @Version: 1.1.0
 */

public class PurchaseRequest {
    // 请求类型
    private int type = 0;
    private float price =0.0f;
    private int id =0;

    public PurchaseRequest(int type, float price, int id) {
        this.type = type;
        this.price = price;
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public PurchaseRequest setType(int type) {
        this.type = type;
        return this;
    }

    public float getPrice() {
        return price;
    }

    public PurchaseRequest setPrice(float price) {
        this.price = price;
        return this;
    }

    public int getId() {
        return id;
    }

    public PurchaseRequest setId(int id) {
        this.id = id;
        return this;
    }


}
